
PROJECT( dmetry )

FIND_PACKAGE( Qt4 REQUIRED )
SET( QT_USE_QTXML true )
INCLUDE ( ${QT_USE_FILE} )

FIND_PACKAGE( ITK REQUIRED )
INCLUDE( ${ITK_USE_FILE} )

ADD_EXECUTABLE( dsavm code/dsavm.cpp
                      code/itkHessian2DToVesselnessMeasureImageFilter.cpp )
TARGET_LINK_LIBRARIES( dsavm ITKCommon ITKIO )

# TODO: should be optional to compile, it is a test.
ADD_EXECUTABLE( test_dsaio code/test_dsaio.cpp )
TARGET_LINK_LIBRARIES( test_dsaio ITKCommon ITKIO )

ADD_EXECUTABLE( dmetry code/dmetry.cpp )
TARGET_LINK_LIBRARIES( dmetry ${QT_LIBRARIES} ITKCommon ITKIO )

ADD_EXECUTABLE( threshold code/threshold.cpp )

ADD_EXECUTABLE( measure code/measure.cpp )

ADD_EXECUTABLE( bgsub code/bgsub.cpp )
TARGET_LINK_LIBRARIES( bgsub ITKCommon ITKIO )
